﻿<%@ Page Language="C#" MasterPageFile="~/TrangChu.master" AutoEventWireup="true" CodeFile="TrangChu.aspx.cs" Inherits="_Default" Title="Trang Chủ" %>
<%-- Add content controls here --%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="leftcurtain" style="margin-left:-50px;"><img src="Images/frontcurtain.jpg" alt=""/></div>  
 <div class="rightcurtain" style="margin-right:-15px"><img src="Images/frontcurtain.jpg" alt=""/></div>  
  
 <a class="rope" href="#"><img src="Images/rope.png" alt=""/></a>
    <div class="divOnTop">
    <marquee style= "font-size : 12pt; font-weight:bold;">
     Ứng dụng quản lý thi trắc nghiệm trực tuyến
    </marquee>
</div>
<div class="rightside" style="width:auto;margin-left:-30px;text-align: center; font-size: 12px;border: 1px solid #cccccc;height:auto; ">
    <div style="width:100%;height:31px;background-image: url(Images/Bgcontent.png)">
        <div style="width:186px;float:left;padding-top:8px;">
                                <div class="div-titleContent" style="color:#B22222">
                                Thông báo
                                </div>
        </div>
    </div >
    <div style="margin-top:10px;margin-bottom:10px;"><b><p style="font-style:oblique;text-align:center;">Đây là trang chủ của Website trắc nghiệm trực tuyến<br />Mọi thông tin về kì thi hoặc tin tức sẽ được thông báo ở đây</p></b>
    </div>
</div>

<div class="rightside" style="margin-top:5px;margin-left:-30px;width:auto;text-align: center; font-size: 12px;border: 1px solid #cccccc;height:auto; ">

<div style="width:100%;height:31px;background-image: url(Images/Bgcontent.png)">
    <div style="width:186px;float:left;padding-top:8px;height:auto">
                                <div class="div-titleContent" style="color:#B22222">
                                Lịch Thi
                                </div><br />
                                
                            
                            </div>
</div>
<br />
             <div  style="margin-left:22%;margin-bottom:10px;">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                                                    CellPadding="3" DataSourceID="SqlDataSource1" Height="98px" Width="287px">
                                                    <RowStyle ForeColor="#000066" />
                                                    <Columns>
                                                        <asp:BoundField DataField="TenMonHoc" HeaderText="Môn Học" />
                                                        <asp:BoundField DataField="MsLopTC" HeaderText="Lớp HP" />
                                                        <asp:BoundField DataField="NgayApDung" DataFormatString="{0:d/M/yyyy}" 
                                                            HeaderText="Ngày Thi" />
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="#000066" />
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                </asp:GridView>
                                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                                                    SelectCommand="SELECT tbl_DETHI.MsLopTC, tbl_DETHI.NgayApDung, tbl_MONHOC.TenMonHoc FROM tbl_DETHI INNER JOIN tbl_LOPTC ON tbl_DETHI.MsLopTC = tbl_LOPTC.MsLopTC INNER JOIN tbl_MONHOC ON tbl_LOPTC.MsMonHoc = tbl_MONHOC.MsMonHoc where datepart(month,getdate())=datepart(month,tbl_DETHI.NgayApDung) or datepart(month,getdate())=datepart(month,dateadd(month,-1,tbl_DETHI.NgayApDung))  ">
                                                </asp:SqlDataSource>
                                </div>                                   



</div>
<script type="text/javascript">  
 $(document).ready(function() {  
  
 $curtainopen = false;  
  
 $(".rope").click(function(){  
  
 $(this).blur();  
  
 if ($curtainopen == false){   
  
 $(this).stop().animate({top: '0px' }, {queue:false, duration:350, easing:'easeOutBounce'});  
 $(".leftcurtain").stop().animate({width:'30px'}, 2000 );  
 $(".rightcurtain").stop().animate({width:'30px'},2000 );  
 $curtainopen = true;  
  
 }else{  
  
 $(this).stop().animate({top: '-40px' }, {queue:false, duration:350, easing:'easeOutBounce'});  
 $(".leftcurtain").stop().animate({width:'57%'}, 2000 );  
 $(".rightcurtain").stop().animate({width:'58%'}, 2000 );  
 $curtainopen = false;  
  
 }  
  
 return false;  
  
 });  
  
 });  
 </script> 
</asp:Content>
